"""
今天是星期三，计算出100天后是星期几

"""
a = int(input("输入天数："))
if a % 7 == 0:
    print("第" + str(a) + "天是星期三")
if a % 7 == 1:
    print("第" + str(a) + "天是星期四")
if a % 7 == 2:
    print("第" + str(a) + "天是星期五")
if a % 7 == 3:
    print("第" + str(a) + "天是星期六")
if a % 7 == 4:
    print("第" + str(a) + "天是星期天")
if a % 7 == 5:
    print("第" + str(a) + "天是星期一")
if a % 7 == 6:
    print("第" + str(a) + "天是星期二")
